<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
    <!-- v-on事件 -->
    <div id="app">
        <button @click="handclick">按钮</button>
        <button @click="handclick2('xl','lx',$event)">按钮2</button>
    </div>
    <script>
        var app = new Vue({
            el:"#app",
                methods:{
                    handclick(){
                        alert("111")
                    },
                    handclick2(e,a,b){
                        console.log(e),
                        console.log(a),
                        console.log(b)
                    }
                }
        })
    </script>
</body>
</html>
